

#pragma once

#include <string>
#include <cstring>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>

class TcpSocket
{
public:
    TcpSocket();
    TcpSocket(int socket);
    void Open();
    void SetOpt();
    void SetNonBlocking();
    int  GetSocketFd()  {   return m_socket_fd; }
    void CloseFd();
private:
    int m_socket_fd;
};

